Result Arg
abstract class ResultArg<V, R> @JvmOverloads constructor(arg: String, fallback: R, noValueArg: Boolean = false)
A key for handling a scope argument for a ResultProvider
Author
fzzyhmstrs
Since
0.5.3
Parameters
V
the value type received by this arg for processing
R
the result type provided by processing
arg
String key used in the scope passed to the provider. for example a boolean arg "test" would have a scope my.example.scope?test=false
fallback
R a fallback value in case processing or argument parsing fails
no Value Arg
Optional boolean, if true the scope string will not need an =value
clause: my.example.scope?noValue?valueNeeded=true